package org.giovanolli.mumi.controller.business;

import java.util.Arrays;
import java.util.Date;
import java.util.List;

import org.giovanolli.mumi.controller.AbstractModel;
import org.giovanolli.mumi.entities.AttentionTime;
import org.giovanolli.mumi.entities.AttentionTimePeriodType;
import org.giovanolli.mumi.entities.AttentionTimeStatus;
import org.giovanolli.mumi.entities.Patient;
import org.giovanolli.mumi.entities.PatientPrepaid;
import org.giovanolli.mumi.entities.PaymentType;
import org.giovanolli.mumi.entities.Specialist;
import org.giovanolli.mumi.entities.SpecialistFee;
import org.giovanolli.mumi.entities.Speciality;
import org.springframework.context.annotation.Scope;
import org.springframework.context.annotation.ScopedProxyMode;
import org.springframework.stereotype.Controller;

/**
 * The Class AttentionTimeModel.
 */
@Controller("attentionTimeModel")
@Scope(value = "flow", proxyMode = ScopedProxyMode.TARGET_CLASS)
public class AttentionTimeModel extends AbstractModel<AttentionTime> implements Cloneable {

	/** The Constant serialVersionUID. */
	private static final long serialVersionUID = -4687148104712890333L;

	/** The sort property. */
	private String sortProperty;

	/** The time and date. */
	private Date timeAndDate;

	/** The attention order. */
	private Integer attentionOrder;

	/** The specialist. */
	private Specialist specialist;

	/** The selectable specialists. */
	private List<Specialist> selectableSpecialists;

	/** The speciality. */
	private Speciality speciality;

	/** The selectable specialities. */
	private List<Speciality> selectableSpecialities;

	/** The patient. */
	private Patient patient;

	/** The selectable patients. */
	private List<Patient> selectablePatients;

	/** The payment type. */
	private PaymentType paymentType;

	/** The fee. */
	private Double fee;

	/** The specialist fee. */
	private SpecialistFee specialistFee;

	/** The patientPrepaid. */
	private PatientPrepaid patientPrepaid;

	/** The selectable patientPrepaids. */
	private List<PatientPrepaid> selectablePatientPrepaids;

	/** The period model. */
	private AttentionTimePeriodModel periodModel;

	/** The selectable attention time status. */
	private List<AttentionTimeStatus> selectableAttentionTimeStatus;

	/** The attention time status. */
	private AttentionTimeStatus attentionTimeStatus;

	/**
	 * Instantiates a new attentionTime model.
	 */
	public AttentionTimeModel() {
		periodModel = new AttentionTimePeriodModel();
		periodModel.setAttentionTimePeriodType(AttentionTimePeriodType.UNIQUE);
		return;
	}

	/**
	 * Gets the attention order.
	 * 
	 * @return the attention order
	 */
	public Integer getAttentionOrder() {
		return attentionOrder;
	}

	/**
	 * Gets the attention time status.
	 * 
	 * @return the attention time status
	 */
	public AttentionTimeStatus getAttentionTimeStatus() {
		return attentionTimeStatus;
	}

	/**
	 * Gets the fee.
	 * 
	 * @return the fee
	 */
	public Double getFee() {
		return fee;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see org.giovanolli.mumi.controller.AbstractModel#getPageNumber()
	 */
	public Integer getPageNumber() {
		return pageNumber;
	}

	/**
	 * Gets the patient.
	 * 
	 * @return the patient
	 */
	public Patient getPatient() {
		return patient;
	}

	/**
	 * Gets the patientPrepaid.
	 * 
	 * @return the patientPrepaid
	 */
	public PatientPrepaid getPatientPrepaid() {
		return patientPrepaid;
	}

	/**
	 * Gets the payment type.
	 * 
	 * @return the payment type
	 */
	public PaymentType getPaymentType() {
		return paymentType;
	}

	/**
	 * Gets the period model.
	 * 
	 * @return the period model
	 */
	public AttentionTimePeriodModel getPeriodModel() {
		return periodModel;
	}

	/**
	 * Gets the selectable attention time status.
	 * 
	 * @return the selectable attention time status
	 */
	public List<AttentionTimeStatus> getSelectableAttentionTimeStatus() {
		if (selectableAttentionTimeStatus == null) {
			selectableAttentionTimeStatus = Arrays.asList(AttentionTimeStatus.values());
		}
		return selectableAttentionTimeStatus;
	}

	/**
	 * Gets the selectable patientPrepaids.
	 * 
	 * @return the selectable patientPrepaids
	 */
	public List<PatientPrepaid> getSelectablePatientPrepaids() {
		return selectablePatientPrepaids;
	}

	/**
	 * Gets the selectable patients.
	 * 
	 * @return the selectable patients
	 */
	public List<Patient> getSelectablePatients() {
		return selectablePatients;
	}

	/**
	 * Gets the selectable payment types.
	 * 
	 * @return the selectable payment types
	 */
	public List<PaymentType> getSelectablePaymentTypes() {
		return Arrays.asList(PaymentType.values());
	}

	/**
	 * Gets the selectable specialists.
	 * 
	 * @return the selectable specialists
	 */
	public List<Specialist> getSelectableSpecialists() {
		return selectableSpecialists;
	}

	/**
	 * Gets the selectable specialities.
	 * 
	 * @return the selectable specialities
	 */
	public List<Speciality> getSelectableSpecialities() {
		return selectableSpecialities;
	}

	/**
	 * Gets the sort property.
	 * 
	 * @return the sort property
	 */
	public String getSortProperty() {
		return sortProperty;
	}

	/**
	 * Gets the specialist.
	 * 
	 * @return the specialist
	 */
	public Specialist getSpecialist() {
		return specialist;
	}

	/**
	 * Gets the specialist fee.
	 * 
	 * @return the specialist fee
	 */
	public SpecialistFee getSpecialistFee() {
		return specialistFee;
	}

	/**
	 * Gets the speciality.
	 * 
	 * @return the speciality
	 */
	public Speciality getSpeciality() {
		return speciality;
	}

	/**
	 * Gets the time and date.
	 * 
	 * @return the time and date
	 */
	public Date getTimeAndDate() {
		return timeAndDate;
	}

	/**
	 * Sets the attention order.
	 * 
	 * @param attentionOrder
	 *            the new attention order
	 */
	public void setAttentionOrder(Integer attentionOrder) {
		this.attentionOrder = attentionOrder;
	}

	/**
	 * Sets the attention time status.
	 * 
	 * @param attentionTimeStatus
	 *            the new attention time status
	 */
	public void setAttentionTimeStatus(AttentionTimeStatus attentionTimeStatus) {
		this.attentionTimeStatus = attentionTimeStatus;
	}

	/**
	 * Sets the fee.
	 * 
	 * @param fee
	 *            the new fee
	 */
	public void setFee(Double fee) {
		this.fee = fee;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see org.giovanolli.mumi.controller.AbstractModel#setPageNumber(java.lang. Integer)
	 */
	public void setPageNumber(Integer pageNumber) {
		this.pageNumber = pageNumber;
	}

	/**
	 * Sets the patient.
	 * 
	 * @param patient
	 *            the new patient
	 */
	public void setPatient(Patient patient) {
		this.patient = patient;
	}

	/**
	 * Sets the patientPrepaid.
	 * 
	 * @param patientPrepaid
	 *            the new patientPrepaid
	 */
	public void setPatientPrepaid(PatientPrepaid patientPrepaid) {
		this.patientPrepaid = patientPrepaid;
	}

	/**
	 * Sets the payment type.
	 * 
	 * @param paymentType
	 *            the new payment type
	 */
	public void setPaymentType(PaymentType paymentType) {
		this.paymentType = paymentType;
	}

	/**
	 * Sets the period model.
	 * 
	 * @param periodModel
	 *            the new period model
	 */
	public void setPeriodModel(AttentionTimePeriodModel periodModel) {
		this.periodModel = periodModel;
	}

	/**
	 * Sets the selectable attention time status.
	 * 
	 * @param selectableAttentionTimeStatus
	 *            the new selectable attention time status
	 */
	public void setSelectableAttentionTimeStatus(List<AttentionTimeStatus> selectableAttentionTimeStatus) {
		this.selectableAttentionTimeStatus = selectableAttentionTimeStatus;
	}

	/**
	 * Sets the selectable patientPrepaids.
	 * 
	 * @param selectablePatientPrepaids
	 *            the new selectable patientPrepaids
	 */
	public void setSelectablePatientPrepaids(List<PatientPrepaid> selectablePatientPrepaids) {
		this.selectablePatientPrepaids = selectablePatientPrepaids;
	}

	/**
	 * Sets the selectable patients.
	 * 
	 * @param selectablePatients
	 *            the new selectable patients
	 */
	public void setSelectablePatients(List<Patient> selectablePatients) {
		this.selectablePatients = selectablePatients;
	}

	/**
	 * Sets the selectable specialists.
	 * 
	 * @param selectableSpecialists
	 *            the new selectable specialists
	 */
	public void setSelectableSpecialists(List<Specialist> selectableSpecialists) {
		this.selectableSpecialists = selectableSpecialists;
	}

	/**
	 * Sets the selectable specialities.
	 * 
	 * @param selectableSpecialities
	 *            the new selectable specialities
	 */
	public void setSelectableSpecialities(List<Speciality> selectableSpecialities) {
		this.selectableSpecialities = selectableSpecialities;
	}

	/**
	 * Sets the sort property.
	 * 
	 * @param sortProperty
	 *            the new sort property
	 */
	public void setSortProperty(String sortProperty) {
		this.sortProperty = sortProperty;
	}

	/**
	 * Sets the specialist.
	 * 
	 * @param specialist
	 *            the new specialist
	 */
	public void setSpecialist(Specialist specialist) {
		this.specialist = specialist;
	}

	/**
	 * Sets the specialist fee.
	 * 
	 * @param specialistFee
	 *            the new specialist fee
	 */
	public void setSpecialistFee(SpecialistFee specialistFee) {
		this.specialistFee = specialistFee;
	}

	/**
	 * Sets the speciality.
	 * 
	 * @param speciality
	 *            the new speciality
	 */
	public void setSpeciality(Speciality speciality) {
		this.speciality = speciality;
	}

	/**
	 * Sets the time and date.
	 * 
	 * @param timeAndDate
	 *            the new time and date
	 */
	public void setTimeAndDate(Date timeAndDate) {
		this.timeAndDate = timeAndDate;
	}

}
